package com.itheima.project.hystrix;

import com.itheima.project.basic.ResponseWrap;
import com.itheima.project.core.enums.trade.TradingEnum;
import com.itheima.project.exception.ProjectException;
import com.itheima.project.feign.NativePayFeign;
import com.itheima.project.utils.ResponseWrapBuild;
import com.itheima.project.vo.trade.RefundRecordVo;
import com.itheima.project.vo.trade.TradingVo;
import org.springframework.stereotype.Component;

/**
 * @ClassName NativePayHystrix.java
 * @Description NativePayFeign的Hystrix i
 */
@Component
public class NativePayHystrix implements NativePayFeign {

    @Override
    public ResponseWrap<TradingVo> createDownLineTrading(TradingVo tradingVo) throws ProjectException {
        return ResponseWrapBuild.build(TradingEnum.NATIVE_PAY_FAIL,null);
    }

    /**
     * 查看二维码
     *
     * @param orderNo
     * @return
     */
    @Override
    public ResponseWrap<String> queryQrCode(Long orderNo) {
        return ResponseWrapBuild.build(TradingEnum.NATIVE_PAY_FAIL,null);
    }

}
